//封装的请求方法

import base,{host360} from './base'
// console.log(base,host);
//二次封装的axios
import axios from '@/utils/request'


//定义方法
export default {
    /*  
        热门城市
    */
    getHotCity(){
        return axios.get(base.hotcity)
    },
    /* 
        搜索框内容
        get keyword='' 
    */
    getSearch(params){
        return axios.get(base.search,{params})  
    },
    /*
        今日推荐
    */
   getTodayInfo(){
    return axios.get(base.todayinfo)
   },
   /* 
        首页商城  ?page=1 
    */
   getHomeShop(params){
    return axios.get(base.homeShop,{params})
   },
   /*
        热门游记与话题
   */
  getHotTravel(){
    return axios.get(base.hotTravel)
  },
    /*
        目的地搜索接口   &keyword=55
    */
  getDestSearch(params){
    return axios.get(base.destSearch,{params})
  }


}

export function demo(){
    console.log('测试单个导出');
}